#ifndef __H_NODE_CMD_H__
#define __H_NODE_CMD_H__

enum SERVER_TYPE
{//cmd:  0x3(type)000 -- 0x3(type)00FF  (255 cmds)
	SERVER_TYPE_NONE = 0,
	SERVER_TYPE_GAME_PLAYER = 1, //客户端
	SERVER_TYPE_AGENT = 2, //代理
	SERVER_TYPE_GAMEALLOC = 3,
	SERVER_TYPE_ONLINE = 4,
	SERVER_TYPE_ROOMSERVER = 5,
	SERVER_TYPE_MASTER = 6,
	SERVER_TYPE_ASSET = 7,
	SERVER_TYPE_GAME_USERINFO_DB_UPDATE = 8,
	SERVER_TYPE_USERINFO = 9,
	SERVER_TYPE_PHP_AGENT = 10,
	SERVER_TYPE_ACCOUNT = 11, //账号
	SERVER_TYPE_DISPATCH = 12,
	SERVER_TYPE_RANK = 13,
	SERVER_TYPE_SERVICE_MANAGER = 14,
	SERVER_TYPE_TGAME_HTTP_PROXY = 15,
	SERVER_TYPE_BRIDGE_PROXY = 16,
	SERVER_TYPE_ACTIVITY =18,
	SERVER_TYPE_PHP = 19,
	SERVER_TYPE_GAME_MANAGE = 20,
	SERVER_TYPE_MAIL = 21,
	SERVER_TYPE_GAME_RPOXY_MANAGE = 22,
	SERVER_TYPE_PROXY = 23,
	SERVER_TYPE_LABEL = 24,
	SERVER_TYPE_FACE = 25,
	SERVER_TYPE_BANNER = 26,
	SERVER_TYPE_REBATE = 27,
	SERVER_TYPE_TGAME = 28,
	SERVER_TYPE_EVENT = 29,
	SERVER_TYPE_COMPANY = 30,   // 处理接入公司游戏数据配置
	SERVER_TYPE_STATISTIC = 31,
	SERVER_TYPE_TRANSACTIONS = 32,
	SERVER_TYPE_ASSET_FOLLOW = 33,
	SERVER_TYPE_ANNOUNCEMENT = 34,
	SERVER_TYPE_GETRANK = 35,
	SERVER_TYPE_LABEL_SAVE = 36,
	SERVER_TYPE_GM = 37,
	SERVER_TYPE_REBATE_SAVE = 38,
	SERVER_TYPE_TRANSACTIONS_STORAGE = 39,
	SERVER_TYPE_GAME_BANNER = 40,
	SERVER_TYPE_TEST_ROOMSERVER = 42,
	SERVER_TYPE_TEST_AGENT_WIN = 43,
	SERVER_TYPE_DATA_BUILDER = 44,
	SERVER_TYPE_GIFT = 45,
	SERVER_TYPE_GIFT_SAVE = 46,
	SERVER_TYPE_ROOMALLOC = 47,
	SERVER_TYPE_VIP_BET_REDATE = 48,
	SERVER_TYPE_ROOM_FLOW = 49,
	SERVER_TYPE_RECORD_BACKEND = 50,
	SERVER_TYPE_GAME_RECORED = 51,
	SERVER_TYPE_ACTIVITY_STATISTICS= 52,
	SERVER_TYPE_TGAME_REORDER = 53,
	SERVER_TYPE_REPORT = 58,
	SERVER_TYPE_REPORT_SWITCH = 59,
	SERVER_TYPE_GAMERECORD = 65,
	SERVER_TYPE_GAMERECORD_STORAGE = 66,
	SERVER_TYPE_GAMERECORD_FLOW = 67,
	SERVER_TYPE_MATCH_CONTROL = 68, // 比赛控制
	SERVER_TYPE_MATCH_PUBLISH = 69, // 比赛发布
	SERVER_TYPE_MATCH_USER = 70,
	SERVER_TYPE_GAMEINFOCACHE = 76,		  // 各游戏最近X条记录
	SERVER_TYPE_GAMEINFOCACHE_STORE = 78, // 各游戏最近X条记录存储
	SERVER_TYPE_MATCH_REPORT = 79, 
	SERVER_TYPE_DELAYSETTLE = 83,		   // 特殊游戏延时结算服务
	SERVER_TYPE_ACCESS_API_TEST = 99,   // 接口测试
	SERVER_TYPE_ACCESS_PLAT = 100,   // 独立游戏接入
	SERVER_TYPE_AGENCY_API = 101,  // 独立游戏接入
	SERVER_TYPE_AGENCY = 102,
	SERVER_TYPE_GAME_INFO = 103,
	SERVER_TYPE_TOPIC = 104,
	SERVER_TYPE_API_ORDER_MANAGER = 105,
	SERVER_TYPE_API_ORDER_FOLLOW = 106,
	SERVER_TYPE_FLOW = 107,
	SERVER_TYPE_FLOW_STORAGE = 108, 
	SERVER_TYPE_AGENCY_EVENT = 109,
	SERVER_TYPE_AGENCY_EVENT_API = 110,
	SERVER_TYPE_GAME_MOCK = 111,    // 游戏mock接口服务
	SERVER_TYPE_AGENCY_EVENT_CALLBACK = 112,
	SERVER_TYPE_AGENT_QUEST = 113,
	SERVER_TYPE_TG_BOT = 114, // tgbot 警告服务
	SERVER_TYPE_SP_MATCH_ACTIVITY = 115, // kbp服务，赛事活动服务
	SERVER_TYPE_GAME_API = 116,  // 游戏侧接入接口
	SERVER_TYPE_GAME_USERINFO = 120,
	SERVER_TYPE_GAME_INFO_STORAGE = 121, // 牌局结算记录
	SERVER_TYPE_MATCH_DISPATCH = 122, 	 // kbp服务，赛事调度服务
	SERVER_TYPE_MATCH_MARQUEE = 123,    // kbp服务，赛事跑马灯服务
};


enum
{//
	SERVER_TYPE_COMM_MIN = 0x30000,

	SERVER_TYPE_REGISTER_SRV_DATA = 0x30010,
	SERVER_TYPE_COMM_MAX = 0x300FF,
};

enum
{
	MASTER_MIN = 0x30700,
	MASTER_REGISTER_SRV_DATA = 0x30701,
	MASTER_PUSH_NEW_CONN = 0x30702,
	MASTER_QUERY_CACHE_CONF = 0x30703,
	MASTER_MAX = 0x307FF,

	MASTER_CONF_REDIS = 1,
	MASTER_CONF_DB = 2,
};

enum
{
	DISPATCH_SRV_MIN = 0x30E00,

	DISPATCH_SRV_P2P = 0x30E10,
	DISPATCH_SRV_BROASCAST = 0x30E11,
	DISPATCH_SRV_GROUP = 0x30E12,
	DISPATCH_SRV_ADD_INTO_GROUP = 0x30E13,
	DISPATCH_SRV_DEL_FROM_GROUP = 0x30E14,
	DISPATCH_SRV_PUSH_CMD = 0x30E15,
	DISPATCH_SRV_REGISTER_CMD = 0x30E16,
	DISPATCH_SRV_CANCEL_CMD = 0x30E17,
	DISPATCH_SRV_MAX = 0x30EFF,
};

enum ServiceAllocType
{
	ALLOC_RANDOM = 1,
	ALLOC_MOD = 2,
};

enum
{
	SERVICEMANAGER_SRV_MIN = 0x31100,

	SERVICEMANAGER_SRV_REG_SERVICE = 0x31110,
	//SERVICEMANAGER_SRV_FIND_SERVICE = 0x31111,
	SERVICEMANAGER_SRV_PUBLISH_SERVICE = 0x31112,
	SERVICEMANAGER_SRV_RETIRE_SERVICE = 0x31113,
	SERVICEMANAGER_SRV_RELOAD_CONF = 0x31114,

	SERVICEMANAGER_SRV_SYN_PROVIDER_DATA = 0x31115,
	SERVICEMANAGER_SRV_ADD_SCORE = 0x31116,
	SERVICEMANAGER_SRV_REPORT_SCORE = 0x31117,
	SERVICEMANAGER_SRV_OFFLINE = 0x31118,
	SERVICEMANAGER_SRV_VOTE_LEADER = 0x31119,
	SERVICEMANAGER_SRV_REQ_SYN_PROVIDER_DATA = 0x3111A,
	SERVICEMANAGER_SRV_MAX = 0x311FF,
};

enum
{
	ONLINE_STATE_QUERY_SYS = 0x0350,
	ONLINE_STATE_QUERY_RSP_SYS = 0x0351,
	SET_LOG_LEVEL = 0x0352
};

#endif   //__H_NODE_CMD_H__